<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <!-- template不会出现在页面中，作为包装其他元素使用 ，关联上v-if可以使包在其中的元素一起显示或隐藏-->
    <div id="box">
        <template v-if="isCreated">
    <div>11111</div>
    <div>22222</div>
    <div>33333</div>
  </template>
    </div>
    <script>
        var obj = {
            data() {
                return {
                    isCreated: true
                }

            }
        }
        var app = Vue.createApp(obj).mount('#box')
    </script>
</body>

</html>